
function reply(id) {
    var form = "#" + id + "Form";
    var area = "#" + id + "Area";
    var btn = "#" + id + "Btn";

    var replyForm = $(form)
    var replyArea = $(area);
    var replyBtn = $(btn);

    //隐藏所有的输入框
    $('.reply-hidden').hide();
    //显示输入框
    replyForm.css("display", "block");

    $('.btn-reply').css("display", "block");
    replyBtn.hide();
    replyArea.focus();
}

function checkReply(id) {
    var reply = "#" + id + "Area";

    var length = $(reply).val().length;
    console.log(length);
    if (length < 5) {
        alert("最少输入五个字");
        return false;
    }
    return true;
}

function confirmDeleteComment(){
    if(confirm('您要删除该评论吗？')){
        return true;
    }else{
        return false;
    }
}

function confirmDeleteQuestion(){
    if(confirm('您要删除该问题吗？')){
        return true;
    }else{
        return false;
    }
}

function confirmDeleteNotices(){
    if(confirm('您要清空通知吗？')){
        return true;
    }else{
        return false;
    }
}

function  changeCity() {
    var change = $("#changeCity");
    change.attr("value","change");
    var modify = $("#modifyCity");
    modify.css("display","block");
}